import Vue from 'vue'
import Vuex from 'vuex'

import server from './modules/server'
import app from './modules/app'
import user from './modules/user'
import cache from './modules/cache'

Vue.use(Vuex)

export default new Vuex.Store({
  modules: {
    server,
    app,
    user,
    cache
  },
  state: {
  },
  mutations: {
  },
  actions: {
  },
  getters: {
    publicPath: state => state.app.publicPath,
    sysInfo: state => state.app.sysInfo,
    authInfo: state => state.user.authInfo,
    assets: state => state.user.assets,
    defaultSettings: state => state.app.defaultSettings
  }
})
